# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

class Recipe(recipe.Recipe):
    name = 'flex'
    version = '2.6.2'
    licenses = [{License.BSD_like: ['COPYING']}]
    stype = SourceType.TARBALL
    url = 'https://github.com/westes/flex/releases/download/v{0}/flex-{0}.tar.gz'.format(version)
    tarball_checksum = '9a01437a1155c799b7dc2508620564ef806ba66250c36bf5f9034b1c207cb2c9'

    files_bins = ['flex', 'flex++']
    patches = ['flex/flex-prevent-to-build-doc.patch']
    autoreconf = True
    platform_deps = {Platform.WINDOWS: ['mingw-gettext']}
    deps = ['automake', 'autoconf', 'gettext-tools']
